function Coordinate(x, y) {
    var x = x;
    var y = y;

    this.getX = function () {
        return x;
    };

    this.setX = function (xcoor) {
        x = xcoor;
    };

    this.getY = function () {
        return y;
    };

    this.setY = function (ycoor) {
        y = ycoor;
    };
}